package com.lesama.test;

import java.util.Scanner;

public class StringTest4 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入聊天消息");
        String msg = sc.nextLine();
        msg = msg.replace("TMD", "***");
        System.out.println(msg);
    }
}
